﻿<%@ Page Language="C#" MasterPageFile="~/Teamp2.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CungUngXayDung.Default" %>


<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
     <asp:DataList ID="listProduct" runat="server" RepeatColumns="2" 
            RepeatDirection="Horizontal" style="margin-left: 0px">
            <ItemTemplate>
                    <div class="product">
                        <table width="300px" cellpadding="0" cellspacing="0" border="0.01" style="margin:10px; border-color:#CCC; border-style:solid;border-width:1px;">
                            <tr>
                                <td align="left" valign="top">
                                   <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Bind("MaSanPham", "GioHang.aspx?id={0}") %>'> 
                                            <asp:Image BorderStyle="Solid" ID="Image1" runat="server" Width="150px"  ImageUrl='<%# Bind("HinhAnh", "images/SanPham/{0}") %>'/>
                                    </asp:HyperLink> 
                 
                                </td>
                                <td valign="top" align="left">     
                                    <div class="baiviet-title">
                                        <b style="font:13px" ><asp:Label ID="lbTen" runat="server" Text='<%# Bind("TenSanPham") %>'></asp:Label></b>
                                    </div>
                                  
                                 <div class="product_price">
                                        
                                            Đơn Giá: <asp:Label ID="lbGia" runat="server" Text=' <%# Bind("GiaBan") %>'></asp:Label> VNĐ <br>
                                       
                                            Đơn vị tính: <asp:Label ID="Label1" runat="server" Text=' <%# Bind("DonViTinh") %>'></asp:Label> 
     
                                    </div>  

                                   
                                    <div>
                                       <asp:HyperLink  ID="Hyperlink2" runat="server" NavigateUrl='<%#Bind("MaSanPham", "LoaiSanPham.aspx?id={0}")  %>' >Xem sản phẩm cùng loại </asp:HyperLink>
                                    </div> 
                                    <br>
                                     <div>
                                         <asp:HyperLink ForeColor="Blue" ID="HyperLink3" runat="server" NavigateUrl='<%# Bind("MaSanPham", "GioHang.aspx?id={0}") %>'> 
                                          Cho vào giỏ<asp:Image BorderStyle="Solid" ID="Image2" runat="server" Width="50px"  ImageUrl="images/giohang.jpg"/> 
                                        </asp:HyperLink> 
                                    </div> 
                                </td>
                            </tr>
                        </table>
                    </div>
                </ItemTemplate>
        </asp:DataList>
</asp:Content>

